package cn.edu.sjtu.stap.sootbranchinstr;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class SimpleRecorder {
	public static void record(String r){
		File recordFile = new File("record_file.txt");
		try {
			PrintWriter pw = new PrintWriter(new FileWriter(recordFile, true));
			pw.println(r);
			pw.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void record(int i){
		record(String.valueOf(i));
	}
	
	public static void main(String[] args){
		for(int i = 0; i < 5; i++){
			record(String.valueOf(i));
		}
	}
}
